home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2002 January / january_2002.iso / Piposh Special / Piposh / QUES.DXR / 00093.ls < prev    next >
Encoding:
Text File  |  2004-12-06  |  1.6 KB  |  81 lines

  1. on exitFrame
  2.   global whosnow, timecnt, whereto, whosnow2
  3.   setmoviepath("dream1")
  4.   if (whosnow = 0) or (whosnow = "sue") then
  5.     whosnow = whosnow2
  6.   else
  7.     whosnow2 = whosnow
  8.   end if
  9.   set the keyDownScript to "cutsnd"
  10.   repeat with i = 39 to 54
  11.     sprite(i).visible = 0
  12.   end repeat
  13.   repeat with i = 61 to 65
  14.     sprite(i).visible = 0
  15.   end repeat
  16.   case whosnow of
  17.     "psy":
  18.       y = "53,54,63"
  19.     "doc":
  20.       y = "41,42,43,44,61,53,54,63"
  21.     "hat":
  22.       y = "51,52,64,41,42,43,44,61,53,54,63"
  23.     "poz":
  24.       y = "51,52,64,41,42,43,44,61,53,54,63,39,40,49,50,65"
  25.     "krp":
  26.       y = "51,52,64,41,42,43,44,61,53,54,63,39,40,49,50,65,47,48,60,45,46,62"
  27.   end case
  28.   repeat with i = 1 to the number of items in y
  29.     sprite(value(item i of y)).visible = 1
  30.   end repeat
  31.   case whosnow of
  32.     "psy":
  33.       h = 31
  34.     "doc":
  35.       h = 33
  36.     "hat":
  37.       h = 34
  38.     "poz":
  39.       h = 36
  40.     "krp":
  41.       h = "e"
  42.   end case
  43.   if h <> "e" then
  44.     repeat with i = h to 37
  45.       sprite(i).visible = 0
  46.     end repeat
  47.   end if
  48.   case whosnow of
  49.     "psy":
  50.       timecnt = 40
  51.     "doc":
  52.       timecnt = 30
  53.     "hat":
  54.       timecnt = 30
  55.     "poz":
  56.       timecnt = 30
  57.     "krp":
  58.       timecnt = "e"
  59.   end case
  60.   whereto = whosnow
  61.   if timecnt = "e" then
  62.     sprite(76).visible = 0
  63.     sprite(77).visible = 0
  64.   else
  65.     put timecnt into field "timecnt"
  66.   end if
  67.   repeat with i = 60 to 65
  68.     sprite(i).visible = 0
  69.   end repeat
  70.   repeat with i = 67 to 74
  71.     sprite(i).visible = 0
  72.   end repeat
  73.   repeat with i = 2 to 25
  74.     set the cursor of sprite i to [105, 106]
  75.   end repeat
  76.   repeat with i = 39 to 53
  77.     set the cursor of sprite i to [103, 104]
  78.   end repeat
  79.   whosnow = 0
  80. end
  81.